Repository navigation
fix(ci): preserve package versions in release images - #733
Merged
Merged
Conversation
Docker context exclusions make the copied Git checkout appear dirty. Pass the release tag's package version to the isolated package build, then require installed metadata and CLI output to match before the image can be published. Keep development builds on existing Git detection. Refs #732. Signed-off-by: Clemens Vasters <clemens@vasters.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The signed v0.11.6 image contains the accepted source but reports
0.11.7.dev0through package metadata and the CLI. Omitting tracked filesthrough
.dockerignoremakes the copied Git checkout appear dirty to SCM.An isolated fixture reproduces the version change by removing only
the tracked
.gitignore.Fixes #732.
Change
Version-tag builds pass
XRCG_VERSIONfrom the tag to the package build.The override is scoped to that build command, not the runtime environment
or dependency installation. Docker construction fails before publication
unless installed metadata and
xrcg --versionmatch the requested version.Unversioned builds retain Git-based version detection.
No generator templates, APIs or dependency constraints change.
Validation
0.11.6becomes0.11.7.dev0after theexclusion; a new release tag would likewise advance incorrectly.
The supported explicit override produces
0.11.7.Bash release/development/error cases, and negative/positive controls
using the actual Dockerfile guard in the published image.
0.11.7wheel/sdist; the unforceddevelopment builder still emits
0.11.7.dev0.generated SCM metadata and CLI all report
0.11.7;pip checkpasses;Avrotize remains
3.9.9; all 608 tracked package files match acceptedGit bytes. This uses a canonical LF clone, not the rejected Windows-CRLF
candidate.
git diff --check: passed.build, Cosign verification and summary jobs passed for
5485611d708add04c79e32f7f4f41d6fa062da40.all eight substantive suites passed at the same head. DCO also passed.
Full local stock-image installation is not claimed: public PyPI file
downloads fail TLS, and the filesystem-identical index-only mirror lacks
Avrotize 3.9.9. The supplemental runtime test installs the private wheel
without changing dependencies in the previously published, source-correct
dependency image. It is not published-release or stock-image acceptance.
No new distribution relay, TLS bypass or artifact patch was used.
Release gates
All eight normal PR suites, DCO and the exact-head stock Docker workflow
passed. After merge, require fresh accepted-main gates, then publish
fresh immutable v0.11.7 and verify actual publisher
artifacts, PyPI/Git/installed bytes, and package/CLI versions inside the
signed versioned image. Do not replace v0.11.6.
Marketplace publication remains excluded under #721.